// index.js
const {indexSwiperList} = require("../../utils/util")
const {indexDataList} = require("../../utils/util")
const {user} = require("../../utils/util")
Page({
  data: {
    dataList: [],
    swiperList: [],
  },
  onLoad() {
    //模拟登录
    wx.setStorageSync("user", user)
    this.initData();
  },
  initData() {
    this.setData({
      swiperList: indexSwiperList,
      dataList: indexDataList
    })
  },
  openDetail() {
    wx.navigateTo({
      url: '/pages/play/play'
    })
  }
})